package com.hns.can.service.entity;

import com.hns.can.common.entity.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Entity
@Table(name = "T_BASE_ELECT_FENC")
public class BaseElectFencEntity extends BaseEntity {
    
    private String fencId;
    private String corpId;
    private String fencCd;//电子围栏编码
    private String fencName;
    private String fencType;//电子围栏形状（0 圆形  1多边形）
    private BigDecimal fencArea;
    private BigDecimal fencWeek;
    private String provinceId;
    private String cityId;
    private String remark;
    private Date updateTime;
    private String updateUser;

    private BigDecimal coreLgt;
    private BigDecimal coreLtt;
    private BigDecimal coreRadius;//电子围栏1半径（单位是米）

    private String organId;
    private String organName;

    private List<BaseElectFencGpsInfoEntity> list;
    private String driveDrc;//方向
    private String funcType;
    private String unBind;//未绑定

    /**
     * default constructor
     */
    public BaseElectFencEntity() {
    }

    @Id
    @Column(name = "FENC_ID")
    public String getFencId() {
        return this.fencId;
    }

    public void setFencId(String fencId) {
        this.fencId = fencId;
    }

    @Column(name = "CORP_ID")
    public String getCorpId() {
        return this.corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    @Column(name = "FENC_CD")
    public String getFencCd() {
        return this.fencCd;
    }

    public void setFencCd(String fencCd) {
        this.fencCd = fencCd;
    }

    @Column(name = "ORGAN_ID")
    public String getOrganId() {
        return organId;
    }

    public void setOrganId(String organId) {
        this.organId = organId;
    }

    @Column(name = "FENC_NAME")
    public String getFencName() {
        return this.fencName;
    }

    public void setFencName(String fencName) {
        this.fencName = fencName;
    }

    @Column(name = "FENC_TYPE")
    public String getFencType() {
        return this.fencType;
    }

    public void setFencType(String fencType) {
        this.fencType = fencType;
    }

    @Column(name = "FENC_AREA")
    public BigDecimal getFencArea() {
        return this.fencArea;
    }

    public void setFencArea(BigDecimal fencArea) {
        this.fencArea = fencArea;
    }

    @Column(name = "FENC_WEEK")
    public BigDecimal getFencWeek() {
        return this.fencWeek;
    }

    public void setFencWeek(BigDecimal fencWeek) {
        this.fencWeek = fencWeek;
    }

    @Column(name = "PROVINCE_ID")
    public String getProvinceId() {
        return this.provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    @Column(name = "CITY_ID")
    public String getCityId() {
        return this.cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    @Column(name = "REMARK")
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "UPDATE_USER")
    public String getUpdateUser() {
        return this.updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Column(name = "CORE_LGT")
    public BigDecimal getCoreLgt() {
        return coreLgt;
    }

    public void setCoreLgt(BigDecimal coreLgt) {
        this.coreLgt = coreLgt;
    }

    @Column(name = "CORE_LTT")
    public BigDecimal getCoreLtt() {
        return coreLtt;
    }

    public void setCoreLtt(BigDecimal coreLtt) {
        this.coreLtt = coreLtt;
    }

    @Column(name = "CORE_RADIUS")
    public BigDecimal getCoreRadius() {
        return coreRadius;
    }

    public void setCoreRadius(BigDecimal coreRadius) {
        this.coreRadius = coreRadius;
    }

    @Transient
    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    @Transient
    public String getDriveDrc() {
        return driveDrc;
    }

    public void setDriveDrc(String driveDrc) {
        this.driveDrc = driveDrc;
    }

    @Transient
    public List<BaseElectFencGpsInfoEntity> getList() {
        return list;
    }

    public void setList(List<BaseElectFencGpsInfoEntity> list) {
        this.list = list;
    }

    @Column(name = "FUNC_TYPE")
    public String getFuncType() {
        return this.funcType;
    }

    public void setFuncType(String funcType) {
        this.funcType = funcType;
    }

    @Transient
    public String getUnBind() {
        return unBind;
    }

    public void setUnBind(String unBind) {
        this.unBind = unBind;
    }
}
